package com.bite.lesson1;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Demo_03 {
    public static void main(String[] args) throws IOException {
        InputStream inputStream = new FileInputStream("D:/GAO/Test/Demo_01.txt");
        byte[] array = new byte[1024];
        int len = 0;
        fun();
        while (true) {
            len = inputStream.read(array);
            if (len == -1) break;
            System.out.println(len);

            for (int i = 0; i < len; i++) {
                System.out.println(array[i]);
            }
        }
        inputStream.close();
    }

    private static void fun() {
        System.out.println(9999);
    }
}
